


export function setUserInfo(data) {
    localStorage.setItem("token", data.token)
    localStorage.setItem("userId", data.userId)
}

export function removeUserInfo() {
    localStorage.removeItem("token")
    localStorage.removeItem("userId")
}

export function getToken() {
    return localStorage.getItem('token')
}

export function getUserId() {
    return localStorage.getItem('userId')
}